<template>
	<u-tabbar v-model="current" :list="list" :before-switch="beforeSwitch" ></u-tabbar>
</template>

<script>
export default {
	data() {
		return {
			current: 0,
			timmer:null
		};
	},
	computed:{
		list:function(){
			const list =  this.$store.getters.getTabbars
			console.log("/components/tabbars/tabbars：开启渲染底部tabbars数据集合")
			return list
		}
	},
	methods: {
		beforeSwitch(index) {
			this.$Router.pushTab(this.list[index].pagePath)
			return true
		}
	}
};
</script>

<style></style>
